//
//  BarcodeReader.h
//  MyBarcodeStore
//
//  Created by Mac on 2010/5/17.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Decoder.h"
#import "DecoderDelegate.h"
#import "ScannedImageView.h"

@class ParsedResult;
//@class Scan;
@class TwoDDecoderResult;
@class ResultAction;

@interface BarcodeReader : UIViewController <DecoderDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate> {
	UIImagePickerController *pickerController;

	IBOutlet UIView *messageView;
	IBOutlet UITextView *messageTextView;
	IBOutlet UIButton *messageHelpButton;
	IBOutlet ScannedImageView *imageView;
	IBOutlet UIToolbar *toolbar;
	
	bool isPickerAnimated;
	Decoder *decoder;
	ParsedResult *result;
	NSArray *actions;
	
	NSMutableArray *resultPointViews;
}

@property (nonatomic, retain) UIView *messageView;
@property (nonatomic, retain) UITextView *messageTextView;
@property (nonatomic, retain) UIButton *messageHelpButton;
@property (nonatomic, retain) ScannedImageView *imageView;
@property (nonatomic, retain) UIToolbar *toolbar;

@property (nonatomic, retain) Decoder *decoder;
@property (nonatomic, retain) ParsedResult *result;
@property (nonatomic, retain) NSArray *actions;

@property (nonatomic, retain) NSMutableArray *resultPointViews;

@end
